package cn.merchant.service;


import cn.itcast.pojo.*;

import java.util.List;

public interface payService {

    List<account> findHoresmanAccount(String openId);

    merchant queryByOpenId(String openId);

    account queryAccountByOpenId(String openid);

    List<recharge> findrechargeRecord(String openId);

    user queryByUserOpenId(String openid);

    account queryAccountByOpenIdByUser(String openid);

    boolean updateHoresmanAccount(account account, double amount, withdraw withdraw);

    boolean updateUserAccount(account account, double parseDouble, withdraw withdraw);

    withdraw createWithDraw(withdraw withdraw);

    List<withdraw> findWithdrawRecord(String openId);

    withdraw createWithDrawByHoresman(withdraw withdraw);
}
